package freshmanspecial.mredrock.com.welcomefreshman.Presenter;

import android.content.Intent;

import freshmanspecial.mredrock.com.welcomefreshman.View.IMienView;
import freshmanspecial.mredrock.com.welcomefreshman.View.IStrategyView;
import freshmanspecial.mredrock.com.welcomefreshman.View.MainView;
import freshmanspecial.mredrock.com.welcomefreshman.View.MienView;
import freshmanspecial.mredrock.com.welcomefreshman.View.StrategyView;

/**
 * Created by Administrator on 2017/8/12 0012.
 */

public class StrategyPresenter implements IStrategyPresenter {
    private IStrategyView strategyView;
    public StrategyPresenter(StrategyView strategyView){
        this.strategyView = strategyView;
    }

    @Override
    public void backToMainView() {
        Intent intent = new Intent(strategyView.getActivity(),MainView.class);
        strategyView.getActivity().startActivity(intent);
        strategyView.getActivity().finish();
    }
}
